<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\InviteCode
 *
 * @property int $id
 * @property int $target_type 0会员，1商家
 * @property int $target_id 会员或者商家id
 * @property string $code 邀请码
 * @property \Illuminate\Support\Carbon|null $created_at 创建时间
 * @property \Illuminate\Support\Carbon|null $updated_at 修改时间
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode whereCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode whereTargetId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode whereTargetType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\InviteCode whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class InviteCode extends Model
{
    protected $table="invite_code";
    protected $fillable = ["id", "target_type", "target_id", "code"];
}
